<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/7/7 0007
 * Time: 下午 9:19
 */

namespace Model;
use Think\Model;

class UserModel extends Model{
    function checkNamePsd($name,$psd){
        $info = $this ->getByU_name($name);
        if ($info != null){
            if($info['psd'] == $psd){
                return $info;}
            else
                return false;
        }
        else
            return false;
    }
}